package com.jhgk.jhcee.auth.model;

import java.util.ArrayList;
import java.util.List;

public class WishesLayoutExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WishesLayoutExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidIsNull() {
            addCriterion("province_uuid is null");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidIsNotNull() {
            addCriterion("province_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidEqualTo(String value) {
            addCriterion("province_uuid =", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidNotEqualTo(String value) {
            addCriterion("province_uuid <>", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidGreaterThan(String value) {
            addCriterion("province_uuid >", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidGreaterThanOrEqualTo(String value) {
            addCriterion("province_uuid >=", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidLessThan(String value) {
            addCriterion("province_uuid <", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidLessThanOrEqualTo(String value) {
            addCriterion("province_uuid <=", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidLike(String value) {
            addCriterion("province_uuid like", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidNotLike(String value) {
            addCriterion("province_uuid not like", value, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidIn(List<String> values) {
            addCriterion("province_uuid in", values, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidNotIn(List<String> values) {
            addCriterion("province_uuid not in", values, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidBetween(String value1, String value2) {
            addCriterion("province_uuid between", value1, value2, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andProvinceUuidNotBetween(String value1, String value2) {
            addCriterion("province_uuid not between", value1, value2, "provinceUuid");
            return (Criteria) this;
        }

        public Criteria andYearIsNull() {
            addCriterion("year is null");
            return (Criteria) this;
        }

        public Criteria andYearIsNotNull() {
            addCriterion("year is not null");
            return (Criteria) this;
        }

        public Criteria andYearEqualTo(Integer value) {
            addCriterion("year =", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotEqualTo(Integer value) {
            addCriterion("year <>", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearGreaterThan(Integer value) {
            addCriterion("year >", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearGreaterThanOrEqualTo(Integer value) {
            addCriterion("year >=", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearLessThan(Integer value) {
            addCriterion("year <", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearLessThanOrEqualTo(Integer value) {
            addCriterion("year <=", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearIn(List<Integer> values) {
            addCriterion("year in", values, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotIn(List<Integer> values) {
            addCriterion("year not in", values, "year");
            return (Criteria) this;
        }

        public Criteria andYearBetween(Integer value1, Integer value2) {
            addCriterion("year between", value1, value2, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotBetween(Integer value1, Integer value2) {
            addCriterion("year not between", value1, value2, "year");
            return (Criteria) this;
        }

        public Criteria andBatchNameIsNull() {
            addCriterion("batch_name is null");
            return (Criteria) this;
        }

        public Criteria andBatchNameIsNotNull() {
            addCriterion("batch_name is not null");
            return (Criteria) this;
        }

        public Criteria andBatchNameEqualTo(String value) {
            addCriterion("batch_name =", value, "batchName");
            return (Criteria) this;
        }

        public Criteria andBatchNameNotEqualTo(String value) {
            addCriterion("batch_name <>", value, "batchName");
            return (Criteria) this;
        }

        public Criteria andBatchNameGreaterThan(String value) {
            addCriterion("batch_name >", value, "batchName");
            return (Criteria) this;
        }

        public Criteria andBatchNameGreaterThanOrEqualTo(String value) {
            addCriterion("batch_name >=", value, "batchName");
            return (Criteria) this;
        }

        public Criteria andBatchNameLessThan(String value) {
            addCriterion("batch_name <", value, "batchName");
            return (Criteria) this;
        }

        public Criteria andBatchNameLessThanOrEqualTo(String value) {
            addCriterion("batch_name <=", value, "batchName");
            return (Criteria) this;
        }

        public Criteria andBatchNameLike(String value) {
            addCriterion("batch_name like", value, "batchName");
            return (Criteria) this;
        }

        public Criteria andBatchNameNotLike(String value) {
            addCriterion("batch_name not like", value, "batchName");
            return (Criteria) this;
        }

        public Criteria andBatchNameIn(List<String> values) {
            addCriterion("batch_name in", values, "batchName");
            return (Criteria) this;
        }

        public Criteria andBatchNameNotIn(List<String> values) {
            addCriterion("batch_name not in", values, "batchName");
            return (Criteria) this;
        }

        public Criteria andBatchNameBetween(String value1, String value2) {
            addCriterion("batch_name between", value1, value2, "batchName");
            return (Criteria) this;
        }

        public Criteria andBatchNameNotBetween(String value1, String value2) {
            addCriterion("batch_name not between", value1, value2, "batchName");
            return (Criteria) this;
        }

        public Criteria andBatchUuidIsNull() {
            addCriterion("batch_uuid is null");
            return (Criteria) this;
        }

        public Criteria andBatchUuidIsNotNull() {
            addCriterion("batch_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andBatchUuidEqualTo(String value) {
            addCriterion("batch_uuid =", value, "batchUuid");
            return (Criteria) this;
        }

        public Criteria andBatchUuidNotEqualTo(String value) {
            addCriterion("batch_uuid <>", value, "batchUuid");
            return (Criteria) this;
        }

        public Criteria andBatchUuidGreaterThan(String value) {
            addCriterion("batch_uuid >", value, "batchUuid");
            return (Criteria) this;
        }

        public Criteria andBatchUuidGreaterThanOrEqualTo(String value) {
            addCriterion("batch_uuid >=", value, "batchUuid");
            return (Criteria) this;
        }

        public Criteria andBatchUuidLessThan(String value) {
            addCriterion("batch_uuid <", value, "batchUuid");
            return (Criteria) this;
        }

        public Criteria andBatchUuidLessThanOrEqualTo(String value) {
            addCriterion("batch_uuid <=", value, "batchUuid");
            return (Criteria) this;
        }

        public Criteria andBatchUuidLike(String value) {
            addCriterion("batch_uuid like", value, "batchUuid");
            return (Criteria) this;
        }

        public Criteria andBatchUuidNotLike(String value) {
            addCriterion("batch_uuid not like", value, "batchUuid");
            return (Criteria) this;
        }

        public Criteria andBatchUuidIn(List<String> values) {
            addCriterion("batch_uuid in", values, "batchUuid");
            return (Criteria) this;
        }

        public Criteria andBatchUuidNotIn(List<String> values) {
            addCriterion("batch_uuid not in", values, "batchUuid");
            return (Criteria) this;
        }

        public Criteria andBatchUuidBetween(String value1, String value2) {
            addCriterion("batch_uuid between", value1, value2, "batchUuid");
            return (Criteria) this;
        }

        public Criteria andBatchUuidNotBetween(String value1, String value2) {
            addCriterion("batch_uuid not between", value1, value2, "batchUuid");
            return (Criteria) this;
        }

        public Criteria andWishCountIsNull() {
            addCriterion("wish_count is null");
            return (Criteria) this;
        }

        public Criteria andWishCountIsNotNull() {
            addCriterion("wish_count is not null");
            return (Criteria) this;
        }

        public Criteria andWishCountEqualTo(Integer value) {
            addCriterion("wish_count =", value, "wishCount");
            return (Criteria) this;
        }

        public Criteria andWishCountNotEqualTo(Integer value) {
            addCriterion("wish_count <>", value, "wishCount");
            return (Criteria) this;
        }

        public Criteria andWishCountGreaterThan(Integer value) {
            addCriterion("wish_count >", value, "wishCount");
            return (Criteria) this;
        }

        public Criteria andWishCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("wish_count >=", value, "wishCount");
            return (Criteria) this;
        }

        public Criteria andWishCountLessThan(Integer value) {
            addCriterion("wish_count <", value, "wishCount");
            return (Criteria) this;
        }

        public Criteria andWishCountLessThanOrEqualTo(Integer value) {
            addCriterion("wish_count <=", value, "wishCount");
            return (Criteria) this;
        }

        public Criteria andWishCountIn(List<Integer> values) {
            addCriterion("wish_count in", values, "wishCount");
            return (Criteria) this;
        }

        public Criteria andWishCountNotIn(List<Integer> values) {
            addCriterion("wish_count not in", values, "wishCount");
            return (Criteria) this;
        }

        public Criteria andWishCountBetween(Integer value1, Integer value2) {
            addCriterion("wish_count between", value1, value2, "wishCount");
            return (Criteria) this;
        }

        public Criteria andWishCountNotBetween(Integer value1, Integer value2) {
            addCriterion("wish_count not between", value1, value2, "wishCount");
            return (Criteria) this;
        }

        public Criteria andMajorCountIsNull() {
            addCriterion("major_count is null");
            return (Criteria) this;
        }

        public Criteria andMajorCountIsNotNull() {
            addCriterion("major_count is not null");
            return (Criteria) this;
        }

        public Criteria andMajorCountEqualTo(Integer value) {
            addCriterion("major_count =", value, "majorCount");
            return (Criteria) this;
        }

        public Criteria andMajorCountNotEqualTo(Integer value) {
            addCriterion("major_count <>", value, "majorCount");
            return (Criteria) this;
        }

        public Criteria andMajorCountGreaterThan(Integer value) {
            addCriterion("major_count >", value, "majorCount");
            return (Criteria) this;
        }

        public Criteria andMajorCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("major_count >=", value, "majorCount");
            return (Criteria) this;
        }

        public Criteria andMajorCountLessThan(Integer value) {
            addCriterion("major_count <", value, "majorCount");
            return (Criteria) this;
        }

        public Criteria andMajorCountLessThanOrEqualTo(Integer value) {
            addCriterion("major_count <=", value, "majorCount");
            return (Criteria) this;
        }

        public Criteria andMajorCountIn(List<Integer> values) {
            addCriterion("major_count in", values, "majorCount");
            return (Criteria) this;
        }

        public Criteria andMajorCountNotIn(List<Integer> values) {
            addCriterion("major_count not in", values, "majorCount");
            return (Criteria) this;
        }

        public Criteria andMajorCountBetween(Integer value1, Integer value2) {
            addCriterion("major_count between", value1, value2, "majorCount");
            return (Criteria) this;
        }

        public Criteria andMajorCountNotBetween(Integer value1, Integer value2) {
            addCriterion("major_count not between", value1, value2, "majorCount");
            return (Criteria) this;
        }

        public Criteria andIsRepeatIsNull() {
            addCriterion("is_repeat is null");
            return (Criteria) this;
        }

        public Criteria andIsRepeatIsNotNull() {
            addCriterion("is_repeat is not null");
            return (Criteria) this;
        }

        public Criteria andIsRepeatEqualTo(Byte value) {
            addCriterion("is_repeat =", value, "isRepeat");
            return (Criteria) this;
        }

        public Criteria andIsRepeatNotEqualTo(Byte value) {
            addCriterion("is_repeat <>", value, "isRepeat");
            return (Criteria) this;
        }

        public Criteria andIsRepeatGreaterThan(Byte value) {
            addCriterion("is_repeat >", value, "isRepeat");
            return (Criteria) this;
        }

        public Criteria andIsRepeatGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_repeat >=", value, "isRepeat");
            return (Criteria) this;
        }

        public Criteria andIsRepeatLessThan(Byte value) {
            addCriterion("is_repeat <", value, "isRepeat");
            return (Criteria) this;
        }

        public Criteria andIsRepeatLessThanOrEqualTo(Byte value) {
            addCriterion("is_repeat <=", value, "isRepeat");
            return (Criteria) this;
        }

        public Criteria andIsRepeatIn(List<Byte> values) {
            addCriterion("is_repeat in", values, "isRepeat");
            return (Criteria) this;
        }

        public Criteria andIsRepeatNotIn(List<Byte> values) {
            addCriterion("is_repeat not in", values, "isRepeat");
            return (Criteria) this;
        }

        public Criteria andIsRepeatBetween(Byte value1, Byte value2) {
            addCriterion("is_repeat between", value1, value2, "isRepeat");
            return (Criteria) this;
        }

        public Criteria andIsRepeatNotBetween(Byte value1, Byte value2) {
            addCriterion("is_repeat not between", value1, value2, "isRepeat");
            return (Criteria) this;
        }

        public Criteria andMajorGroupIsNull() {
            addCriterion("major_group is null");
            return (Criteria) this;
        }

        public Criteria andMajorGroupIsNotNull() {
            addCriterion("major_group is not null");
            return (Criteria) this;
        }

        public Criteria andMajorGroupEqualTo(Byte value) {
            addCriterion("major_group =", value, "majorGroup");
            return (Criteria) this;
        }

        public Criteria andMajorGroupNotEqualTo(Byte value) {
            addCriterion("major_group <>", value, "majorGroup");
            return (Criteria) this;
        }

        public Criteria andMajorGroupGreaterThan(Byte value) {
            addCriterion("major_group >", value, "majorGroup");
            return (Criteria) this;
        }

        public Criteria andMajorGroupGreaterThanOrEqualTo(Byte value) {
            addCriterion("major_group >=", value, "majorGroup");
            return (Criteria) this;
        }

        public Criteria andMajorGroupLessThan(Byte value) {
            addCriterion("major_group <", value, "majorGroup");
            return (Criteria) this;
        }

        public Criteria andMajorGroupLessThanOrEqualTo(Byte value) {
            addCriterion("major_group <=", value, "majorGroup");
            return (Criteria) this;
        }

        public Criteria andMajorGroupIn(List<Byte> values) {
            addCriterion("major_group in", values, "majorGroup");
            return (Criteria) this;
        }

        public Criteria andMajorGroupNotIn(List<Byte> values) {
            addCriterion("major_group not in", values, "majorGroup");
            return (Criteria) this;
        }

        public Criteria andMajorGroupBetween(Byte value1, Byte value2) {
            addCriterion("major_group between", value1, value2, "majorGroup");
            return (Criteria) this;
        }

        public Criteria andMajorGroupNotBetween(Byte value1, Byte value2) {
            addCriterion("major_group not between", value1, value2, "majorGroup");
            return (Criteria) this;
        }

        public Criteria andProvinceNameIsNull() {
            addCriterion("province_name is null");
            return (Criteria) this;
        }

        public Criteria andProvinceNameIsNotNull() {
            addCriterion("province_name is not null");
            return (Criteria) this;
        }

        public Criteria andProvinceNameEqualTo(String value) {
            addCriterion("province_name =", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameNotEqualTo(String value) {
            addCriterion("province_name <>", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameGreaterThan(String value) {
            addCriterion("province_name >", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameGreaterThanOrEqualTo(String value) {
            addCriterion("province_name >=", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameLessThan(String value) {
            addCriterion("province_name <", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameLessThanOrEqualTo(String value) {
            addCriterion("province_name <=", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameLike(String value) {
            addCriterion("province_name like", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameNotLike(String value) {
            addCriterion("province_name not like", value, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameIn(List<String> values) {
            addCriterion("province_name in", values, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameNotIn(List<String> values) {
            addCriterion("province_name not in", values, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameBetween(String value1, String value2) {
            addCriterion("province_name between", value1, value2, "provinceName");
            return (Criteria) this;
        }

        public Criteria andProvinceNameNotBetween(String value1, String value2) {
            addCriterion("province_name not between", value1, value2, "provinceName");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}